﻿
using Biomedica.Nui.ui;
using NuiDicomPlayer.Controls;
using NuiDicomPlayer.Controls.Elements;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace NuiDicomPlayer.Subviews
{
    /// <summary>
    /// Interaction logic for WelcomScreen.xaml
    /// </summary>
    public partial class WelcomScreen : SubviewBase
    {
        private delegate void OnDismissView();

        public WelcomScreen()
        {
            InitializeComponent();

        }   
        private void lefthandD_OnHandFiredEvent_1(object sender, EventArgs e)
        {     
            App.IsLeftHanded = true; 
            this.Dispatcher.Invoke(new OnDismissView(DismissView));
        }
        private void rightD_OnHandFiredEvent_1(object sender, EventArgs e)
        {
            App.IsLeftHanded = false;
            this.Dispatcher.Invoke(new OnDismissView(DismissView));
        }
        private void DismissView()
        {
            HideView();
        }
        private void UserControl_Loaded_1(object sender, RoutedEventArgs e)
        {
           
        }

        public double StartDistance { get; set; }

        internal void ShowShadow(WriteableBitmap Bmp)
        {
            shadowimage.Source = Bmp;
        }
    }
}
